package org.practice.service.impl;

import org.springframework.stereotype.Component;

@Component
public class LogicCglib{
	//负责新增
    public void doInsert(String name){
    	System.out.println("执行具体负责新增的业务逻辑…");
    	for (int i = 0; i < 100000000; i++) {
    		//模拟执行时间
    	}
    }
    //负责修改
    public void doUpdate(String name){
    	System.out.println("执行具体负责修改的业务逻辑…");
    	for (int i = 0; i < 200000000; i++) {
    		//模拟执行时间
    	}
    }
    //负责删除
    public void doDelete(String name){
    	System.out.println("执行具体负责删除的业务逻辑…");
    	for (int i = 0; i < 300000000; i++) {
    		i = i / 0;//模拟异常发生
    	}
    }
    //负责查找
    public void find(String name){
    	System.out.println("执行具体负责查找的业务逻辑…");
    	for (int i = 0; i < 300000000; i++) {
    		//模拟执行时间
    	}
    }
    
}
